﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmArea.aspx.cs" Inherits="SISLOG.Web.frmArea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset>
    <legend>Area</legend>
    <fieldset>
        <legend>Buscar Area</legend>
        <asp:Label ID="Label1" runat="server" Text="Buscar:"></asp:Label>
        &nbsp;&nbsp;&nbsp; <asp:TextBox ID="txtBuscarArea" runat="server" Width="179px"></asp:TextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnBuscarArea" runat="server" Text="Buscar" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnNuevo" runat="server" Text="Nueva Area" 
        onclick="btnNuevo_Click2" />
    </fieldset>
    <fieldset>
        <legend>Listar Area</legend>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSourceArea">
            <Columns>
            <asp:BoundField DataField="IdArea" HeaderText="IdArea" 
            SortExpression="IdArea" />
            <asp:BoundField DataField="NombreArea" HeaderText="NombreArea" 
            SortExpression="NombreArea" />
            <asp:HyperLinkField DataNavigateUrlFields="idArea" 
            DataNavigateUrlFormatString="frmCRUDArea.aspx?id={0}" HeaderText="Editar" 
            Text="Editar" />
        </Columns>
    </asp:GridView>
    </fieldset>
</fieldset>
    <asp:ObjectDataSource ID="ObjectDataSourceArea" runat="server" 
        onobjectcreating="ObjectDataSourceArea_ObjectCreating" 
        SelectMethod="GetAllFromArea" TypeName="SISLOG.BusinessLogic.AreaBL">
    </asp:ObjectDataSource>
</asp:Content>
